{% extends 'admin/base.html' %}

{% block main %}
{{ super() }}
This is dashboard
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo layui-hide-xs layui-bg-black"> FlaskCMS 后台管理系统</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <!-- 移动端显示 -->
      <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
        <i class="layui-icon layui-icon-spread-left"></i>
      </li>

      <li class="layui-nav-item"><a href="">主页</a></li>
      <li class="layui-nav-item"><a href="">新建</a></li>
      <li class="layui-nav-item"><a href="">评论</a></li>
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;"> 贤心 </a>
        <dl class="layui-nav-child">
          <dd><a href="">基本资料</a></dd>
          <dd><a href="">安全设置</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item"><a href="">退了</a></li>
    </ul>
  </div>

  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-shrink="all" lay-filter="test">
        <li class="layui-nav-item">
          <a href="/admin/dashboard">仪表盘</a>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">文章</a>
          <dl class="layui-nav-child">
            <dd><a href="/admin/categories">分类目录</a></dd>
            <dd><a href="/admin/posts">文章列表</a></dd>
            <dd><a href="/admin/post">发布文章</a></dd>
            <dd><a href="/admin/tag">标签</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">页面</a>
          <dl class="layui-nav-child">
            <dd><a href="/admin/pages">页面列表</a></dd>
            <dd><a href="/admin/page">新建页面</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">媒体</a>
          <dl class="layui-nav-child">
            <dd><a href="/admin/pictures">图片库</a></dd>
            <dd><a href="/admin/videoes">视频库</a></dd>
            <dd><a href="/admin/documents">文档库</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item"><a href="/admin/comments">评论</a></li>
        <li class="layui-nav-item">
          <a href="javascript:;">用户</a>
          <dl class="layui-nav-child">
            <dd><a href="/admin/users">所有用户</a></dd>
            <dd><a href="/admin/user">添加用户</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">设置</a>
          <dl class="layui-nav-child">
            <dd><a href="/admin/site">站点设置</a></dd>

          </dl>
        </li>
        <li class="layui-nav-item"><a href="/admin/about">关于</a></li>
      </ul>
    </div>
  </div>

  <div class="layui-body">
    <iframe id="admin-frame" src="/admin/dashboard" frameborder="0" width=100% height=100% scrolling="no"></iframe>
  </div>

  <div class="layui-footer">
    © ilearnging
  </div>
</div>

{% endblock %}
